package com.itheima.demo;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/11 18:46
 */
public class Demo_Store {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        prop.setProperty("张三", "瓜皮");
        prop.setProperty("李四", "大瓜皮");
        prop.setProperty("王五", "大大瓜皮");
        prop.setProperty("赵六", "大大大瓜皮");
        FileWriter fw = new FileWriter("demo_properties\\pop.properties");
        prop.store(fw, "");
        fw.close();
    }
}
